package com.gujia.designpattern.strategy;

import com.gujia.designpattern.strategy.impl.FlyByWin;

public class MallardDuck extends Duck {

    public MallardDuck() {
        this.setFlyingStragety(new FlyByWin());
    }

    @Override
    public void display() {
        System.out.println("我的脖子是绿色的");
    }
}
